/// 今日签数据模型
class DailyCheckInData {
  final String createTime;
  final Map<String, dynamic> params;
  final int id;
  final String deviceSn;
  final String dailyValue;
  final String lingTiao;
  final String sunPillar;
  final String healthReviews;
  final String healthAdvice;
  final String healthTraceability;
  final String funEasterEggs;

  DailyCheckInData({
    required this.createTime,
    required this.params,
    required this.id,
    required this.deviceSn,
    required this.dailyValue,
    required this.lingTiao,
    required this.sunPillar,
    required this.healthReviews,
    required this.healthAdvice,
    required this.healthTraceability,
    required this.funEasterEggs,
  });

  factory DailyCheckInData.fromJson(Map<String, dynamic> json) {
    return DailyCheckInData(
      createTime: json['createTime'] ?? '',
      params: json['params'] ?? {},
      id: json['id'] ?? 0,
      deviceSn: json['deviceSn'] ?? '',
      dailyValue: json['dailyValue'] ?? '',
      lingTiao: json['lingTiao'] ?? '',
      sunPillar: json['sunPillar'] ?? '',
      healthReviews: json['healthReviews'] ?? '',
      healthAdvice: json['healthAdvice'] ?? '',
      healthTraceability: json['healthTraceability'] ?? '',
      funEasterEggs: json['funEasterEggs'] ?? '',
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'createTime': createTime,
      'params': params,
      'id': id,
      'deviceSn': deviceSn,
      'dailyValue': dailyValue,
      'lingTiao': lingTiao,
      'sunPillar': sunPillar,
      'healthReviews': healthReviews,
      'healthAdvice': healthAdvice,
      'healthTraceability': healthTraceability,
      'funEasterEggs': funEasterEggs,
    };
  }
}
